package com.hex.liyue.guidemodule.presenter;

import com.hex.liyue.commonmodule.manager.UserManager;

/**
 * Created by WJ on 2016/6/11.
 */
public class SplashPresenter {
    private ISplashView iSplashView;

    /**
     * 这是一个跳转的逻辑方法
     */
    public void jump() {
        if (UserManager.isFirst()) {
            if (UserManager.isLogin()) {
                iSplashView.startMainActivity();
            } else {
                iSplashView.startLoginAndRegistActivity();
            }
        } else {
            iSplashView.startGuideActivity();

        }

    }

    public SplashPresenter(ISplashView iSplashView) {
        this.iSplashView = iSplashView;
    }


}
